//
//  ClipPopViewController.m
//  KurentoToolboxDemo
//
//  Created by 葛殿宏 on 16/3/20.
//  Copyright © 2016年 Telecom Italia S.p.A. All rights reserved.
//

#import "ClipPopViewController.h"
#import "UIViewController+MJPopupViewController.h"

@interface ClipPopViewController ()

@end

@implementation ClipPopViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.roomUrl.text = self.url;
    self.roomPassword.text = self.password;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)clipButtonClick:(id)sender {
    NSString *copyStringverse = [NSString stringWithFormat:@"房间地址:%@,%@",self.roomUrl.text,self.roomPassword.text];
    UIPasteboard *pb = [UIPasteboard generalPasteboard];
    [pb setString:copyStringverse];
}

- (IBAction)closeButtonClick:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(cancelButtonClicked:)]) {
        [self.delegate cancelButtonClicked:self];
    }
}


@end
